package com.cetool.autocms.pojo.request.sys;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 新增菜单请求实体
 *
 * @author 戴越
 * @date 2021/11/24
 */
@Data
@ApiModel("新增菜单请求实体")
public class SaveMenuRequest {

    /**
     * 父级菜单id，不选为-1
     */
    @ApiModelProperty(value = "父级菜单id,不选为-1", example = "-1")
    @NotNull(message = "父级菜单id不能为空")
    private Integer pid;

    /**
     * 菜单名称
     */
    @ApiModelProperty(value = "菜单名称", example = "系统管理")
    @NotBlank(message = "菜单名称不能为空")
    private String menuName;

    /**
     * 链接地址
     */
    @ApiModelProperty(value = "链接地址", example = "/sys")
    @NotBlank(message = "链接地址不能为空")
    private String url;

}
